package com.symone.crawler.runnable;

import cn.hutool.db.Entity;
import com.symone.crawler.service.InfoService;

public class CheckThread implements Runnable {

    private Entity room;
    private boolean useProxy;

    public CheckThread(Entity room,boolean useProxy){
        this.room = room;
        this.useProxy = useProxy;
    }

    @Override
    public void run() {
        //while (true) {
            new InfoService(room).checkRoom(useProxy);
        //}
    }
}
